/* **************************************************************
NAME: yemenlabelvars.ado 
CREATED: 26 February 2021
EDITED: 20 September 2021 
AUTHOR: callan.corcoran@kellogg.northwestern.edu
PURPOSE: Program to label variables for the Yemen project 
************************************************************** */

cap prog drop yemenlabelvars

prog def yemenlabelvars

// **************************************************************
// ORDER VARIABLES 

order num_adults* nb_children* age_head* gender_head* /// Table 1 
	asset_tot_value* ctotalpc* ctotalhh* inc_total* inc_LS* inc_nonLS* fs_index* savings_index* percep_econ* hous_sindex* debt_index* /// Table 2
	anyshock* dshock_lstock* shockresp_savings* shockresp_loan* shockresp_asset* /// Table 3A 
	hhsize* avg_edu_years* avg_age* new_perm_mbs* num_new_hh_mbs* hh_head_new_mb* /// Table 3B
	hh_head_died* num_died* num_old_died* num_died_ill* num_died_acdnt* avgage_died* /// Table 3C
	num_travel_30d* prop_travel_30d* num_wrktravel_30d* prop_wrktravel_30d* /// Table 3D
	nb_room* /// ATable 1
	/// ATable 2
	asset_hh_value* asset_prod_value* asset_prodNonLS* lstock_value* asset_goatsheep* /// ATable 3
	cfood_adjpcmonth* cnonfood_adjpcmonth* cdurable_adjpcmonth* ceduc_adjpcmonth* chealth_adjpcmonth* ctotal_adjNTmonth* /// ATable 4A
	cfood_adjhhmonth* cnonfood_adjhhmonth* cdurable_adjhhmonth* ceduc_adjhhmonth* chealth_adjhhmonth* /// ATable 4B 
	ranimals_annual* lstock_costs* lstockin_total* LB7_1* LB7_2* LB7_3* LB7_4* LB7_oth* lv_asset_spent* /// ATable 5
	ipaidlabor_annual* ibusiness_annual* rbusiness_annual* totalbuscosts_yr* iagri_annual* ragri_annual* totalagricost* /// ATable 6 
	fs_enoughfood* fs_twomeals* fs_adultskip* fs_wholeday* fs_childskip* /// ATable 7
	sav_totalamt* sav_depositamt* /// ATable 8 
	nb_rooms_apc* prim_roof_concrete* prim_walls_stone* latrine* dohhrepair* hhrepair_spend* hhrepair_plan* treated_water* inv_time_water* /// ATable 9 
	loan_informalamt* loan_formalamt* amt_debt* /// ATable 10 
	gift_total* totalremit* /// Table 3E R&R 
	, first

order hhid treatment eligible village, first 

// **************************************************************
// LABEL VARIABLES 

{ // STANDALONE VARIABLES 
	la var hhid 			"Household (HH) ID"
	la var treatment		"Treated"
	la var eligible			"Deemed Eligible During Recertification"
	la var village			"Village ID"
}

{ // ENDLINE AND BASELINE 
foreach suffix in "_bsl" "_end" {
    
	if "`suffix'"=="_bsl" {
	    loc timelab "at Baseline"
	}
	
	if "`suffix'"=="_end" {
	    loc timelab "at Endline"
	}
	
	// Label variables 
    la var num_adults`suffix' 			"Number of Adults 18+ in HH `timelab'"
    la var nb_children`suffix' 			"Number of Children (<18) in HH `timelab'"
    la var age_head`suffix' 			"Age of HH Head `timelab'"
    la var gender_head`suffix' 			"Female HH Head `timelab'"
    la var asset_index`suffix' 			"Asset Index `timelab'"
    la var ctotalpc`suffix'				"Per Capita Total Monthly Consumption (USD PPP) `timelab'"
    la var ctotalhh`suffix' 			"HH Total Monthly Consumption (USD PPP) `timelab'"
    la var fs_index`suffix' 			"Food Security Index `timelab'"
    la var percep_econ`suffix' 			"Perceived Economic Status (1-10) `timelab'"
    la var hous_sindex`suffix' 			"Housing Index (Short) `timelab'"
    la var debt_index`suffix' 			"Debt Index `timelab'"
	la var inc_total`suffix'	 		"Total Income Past 12m (USD PPP) `timelab'"
    la var anyshock`suffix' 			"Any HH Shock `timelab'"
    la var dshock_lstock`suffix' 		"Livestock Shock `timelab'"
    la var shockresp_savings`suffix' 	"Used Savings to Cope with Shock `timelab'"
    la var shockresp_loan`suffix' 		"Used Loan to Cope with Shock `timelab'"
    la var shockresp_asset`suffix' 		"Used Asset Sale to Cope with Shock `timelab'"
    la var hhsize`suffix' 				"HH Size `timelab'"
    la var avg_edu_years`suffix' 		"HH Average Years of Education `timelab'"
    la var avg_age`suffix' 				"HH Average Age `timelab'"
	la var avgage_died`suffix' 			"Average Age of HH Members Who Have Died `timelab'"
	la var nb_room`suffix' 				"Number Rooms Per Adult `timelab'"
	la var cfood_adjpcmonth`suffix' 	"Per-Capita Total Monthly Food Consumption (USD PPP) `timelab'"
	la var cnonfood_adjpcmonth`suffix' 	"Per-Capita Monthly Non-Food Consumption (USD PPP) `timelab'"
	la var ceduc_adjpcmonth`suffix' 	"Per-Capita Monthly Education Expenses (USD PPP) `timelab'"
	la var cfood_adjhhmonth`suffix'		"HH Monthly Food Consumption (USD PPP) `timelab'"
	la var cnonfood_adjhhmonth`suffix' 	"HH Monthly Non-Food Consumption (USD PPP) `timelab'"
	la var ceduc_adjhhmonth`suffix' 	"HH Monthly Education Expenses (USD PPP) `timelab'"
	la var nb_rooms_apc`suffix' 		"Number Rooms Per Adult Equivalent `timelab'"
	la var prim_roof_concrete`suffix' 	"Primary Roofing Primarily of Concrete `timelab'"
	la var latrine`suffix' 				"Uses a Latrine `timelab'"
	la var dohhrepair`suffix' 			"Done any HH Repairs Past 12m `timelab'"
	la var hhrepair_spend`suffix' 		"Money Spent on HH Repairs Past 12m (USD PPP) `timelab'"
	la var treated_water`suffix' 		"Drinking Water Is Treated `timelab'"
	la var inv_time_water`suffix' 		"Inverse of Time to Collect Water (mins) `timelab'"
	la var loan_informalamt`suffix' 	"Informal Loan Amount (USD PPP) `timelab'"
	la var loan_formalamt`suffix' 		"Formal Loan Amount (USD PPP) `timelab'"
	la var amt_debt`suffix' 			"Outstanding Loans to Be Paid (USD PPP) `timelab'"
	la var ls_hany_goatsheep`suffix' 	"Owned Any Goats or Sheep Past 12m `timelab'"
	la var ls_hany_sheep`suffix' 		"Owned Any Sheep Past 12m `timelab'"
	la var ls_hcnt_sheep`suffix' 		"Number Sheep Owned Past 12m `timelab'"
	la var ls_hany_goats`suffix' 		"Owned Any Goats Past 12m `timelab'"
	la var ls_hcnt_goats`suffix' 		"Number Goats Owned Past 12m `timelab'"
	la var ls_hany_other`suffix' 		"Owned Any Other Animal Past 12m `timelab'"
	la var ls_hany_chickens`suffix' 	"Owned Any Chickens Past 12m `timelab'"
	la var ls_hcnt_chickens`suffix' 	"Number Chickens Owned Past 12m `timelab'"
	la var ls_hany_cows`suffix' 		"Owned Any Cows Past 12m  `timelab'"
	la var ls_hcnt_cows`suffix' 		"Number Cows Owned Past 12m `timelab'"
	
/*
	la var `suffix' 			" `timelab'"
	la var `suffix' 			" `timelab'"
	la var `suffix' 			" `timelab'"
	la var `suffix' 			" `timelab'"
	la var `suffix' 			" `timelab'"
*/	
}
}

{ // ENDLINE ONLY 
	la var new_perm_mbs_end				"Any New HH Members Since Baseline"
    la var num_new_hh_mbs_end	 		"Number New HH Members Since Baseline"
	la var hh_head_new_mb_end			"New HH Head Since Baseline"
	la var hh_head_died_end 			"HH Head Died Since Baseline"
	la var num_died_end					"Number HH Members Died Since Baseline"
	la var num_old_died_end				"Number HH Members from Baseline Who Have Died Since Baseline"
	la var num_died_ill_end				"Number HH Members Died of Illness Since Baseline"
	la var num_died_acdnt_end			"Number HH Members Died of Accident Since Baseline"
	la var num_travel_30d_end 			"Number HH Members Traveled 30+ Days in Past 12m at Endline"
	la var prop_travel_30d_end 			"Proportion HH Members Traveled 30+ Days in Past 12m at Endline"
	la var num_wrktravel_30d_end 		"Number HH Members Traveled 30+ Days for Work in Past 12m at Endline"
	la var prop_wrktravel_30d_end 		"Proportion HH Members Traveled 30+ Days for Work in Past 12m at Endline"
    la var asset_tot_value_end	 		"Total Asset Value (USD PPP) at Endline"
	la var asset_hh_value_end			"Total HH Asset Value (USD PPP) at Endline"
	la var asset_prod_value_end			"Total Productive Asset Value (USD PPP) at Endline"
	la var asset_prodNonLS_end			"Ag. Tools/Structures Value (USD PPP) at Endline"
    la var inc_LS_end	 				"Livestock Income Past 12m (USD PPP) at Endline"
    la var inc_nonLS_end	 			"Non-Livestock Income Past 12m (USD PPP) at Endline"
    la var savings_index_end	 		"Savings Index at Endline"
	la var cdurable_adjpcmonth_end	 	"Per-Capita Monthly Durable Consumption (USD PPP) at Endline"
	la var chealth_adjpcmonth_end	 	"Per-Capita Monthly Health Expenses (USD PPP) at Endline"
	la var ctotal_adjNTmonth_end 		"Per-Non-Traveler Total Monthly Consumption (USD PPP) at Endline"
	la var cdurable_adjhhmonth_end 		"HH Monthly Durable Consumption (USD PPP) at Endline"
	la var chealth_adjhhmonth_end	 	"HH Monthly Health Expenses (USD PPP) at Endline"
	la var lstock_value_end				"Livestock Value (USD PPP) at Endline"
	la var asset_goatsheep_end			"Goat/Sheep Value (USD PPP) at Endline"
	la var ranimals_annual_end			"Livestock Revenue Past 12m (USD PPP) at Endline"
	la var lstock_costs_end				"Livestock Expenses Past 12m (USD PPP) at Endline"
	la var lstockin_total_end 			"Livestock Variable Costs Past 12m (USD PPP) at Endline"
	la var LB7_1_end					"Livestock Fodder Costs Past 12m (USD PPP) at Endline"
	la var LB7_2_end					"Livestock Transportation Costs Past 12m (USD PPP) at Endline"
	la var LB7_3_end					"Livestock Labor Costs Past 12m (USD PPP) at Endline"
	la var LB7_4_end					"Livestock Vacc/Vet Costs Past 12m (USD PPP) at Endline"
	la var LB7_oth_end					"Livestock Other Costs Past 12m (USD PPP) at Endline"
	la var lv_asset_spent_end			"Livestock Structure Costs Past 12m (USD PPP) at Endline"
	la var ipaidlabor_annual_end		"Paid Labor Income Past 12m (USD PPP) at Endline" 
	la var ibusiness_annual_end 		"Business Profit Past 12m (USD PPP) at Endline"
	la var rbusiness_annual_end			"Business Revenue Past 12m (USD PPP) at Endline"
	la var totalbuscosts_yr_end 		"Business Costs Past 12m (USD PPP) at Endline" 
	la var iagri_annual_end 			"Agriculture Profit Past 12m (USD PPP) at Endline"
	la var ragri_annual_end 			"Agriculture Revenue Past 12m (USD PPP) at Endline"
	la var totalagricost_end			"Agriculture Costs Past 12m (USD PPP) at Endline"
	la var fs_enoughfood_end			"Enough Food at Endline" 
	la var fs_twomeals_end				"Two Meals a Day at Endline" 
	la var fs_adultskip_end				"Adults Skip Meals at Endline" 
	la var fs_wholeday_end				"HH Members Skip Full Day of Eating at Endline" 
	la var fs_childskip_end				"Children Skip Meals at Endline" 
	la var sav_totalamt_end 			"Total Savings Balance (USD PPP) at Endline"
	la var sav_depositamt_end			"Total Deposts Past 3m (USD PPP) at Endline"
	la var prim_walls_stone_end		 	"Walls Primarily of Stone at Endline"
	la var hhrepair_plan_end			"Plan To Do HH Repairs In Next 12m at Endline"
	la var gift_total_end 				"Total Crops Given to Other HH Past 12m (USD PPP) at Endline" 
	la var totalremit_end 				"Total Remittances Past 12m (USD PPP) at Endline" 
	la var ls_hany_mules_donkeys_end	"Owned Any Mules/Donkeys Past 12m at Endline"
	la var ls_hcnt_mules_donkeys_end	"Number Mules/Donkeys Owned Past 12m at Endline"
	la var ls_hany_doves_end			"Owned Any Doves Past 12m at Endline"
	la var ls_hcnt_doves_end 			"Number Doves Owned Past 12m at Endline"
	la var ls_hany_rabbits_end			"Owned Any Rabbits Past 12m at Endline"
	la var ls_hcnt_rabbits_end			"Number Rabbits Owned Past 12m at Endline"
	la var hh_head_bsln_died_end 		"HH Head from Baseline Died Since Baseline"
	la var num_hh_head_bsln_died_end	"Number of HH Heads from Baseline who Died Since Baseline"
	la var hh_head_baseline_died 		"Reported HH Head Died and Was HH Head at Baseline"
	la var hh_head_diff_died 			"Reported HH Head Died But HH Head Matches Baseline"
}

{ // BASELINE ONLY 
	la var savings_bsl					"Any Savings at Baseline"
	la var hh_head_died_bsl 			"HH Head Died in Past 5 Years at Baseline"
	la var num_died_bsl					"Number HH Members Died in Past 5 Years at Baseline"
	la var num_died_ill_bsl				"Number HH Members Died of Illness in Past 5 Years at Baseline"
	la var num_died_acdnt_bsl			"Number HH Members Died of Accident in Past 5 Years at Baseline"
	la var disabl_head_bsl				"HH Head Disabled at Baseline" 
	la var swf_income_bsl				"SWF Income (USD PPP) at Baseline"
	la var inonagriself_bsl				"Earns Income from Source Other Than Self-Employed Agriculture"
}

// **************************************************************
// LABEL VALUES  

end 
